﻿using System;
using System.Data;

using Microsoft.VisualStudio.TestTools.UnitTesting;

using PublicDomain.Data.Csv;

namespace PublicDomain.UnitTest.Data.Csv
{
    [TestClass]
    public class CsvDataInvalidOperationExceptionTest
    {
        public TestContext TestContext { get; set; }

        public void TestInitialize()
        {
        }

        [TestMethod]
        [Description("Tests constructor CsvDataInvalidOperationExceptionTest().")]
        public void CsvCommandConstructor1Test()
        {
            var target = new CsvDataInvalidOperationException();

            Assert.AreEqual("Exception of type 'PublicDomain.Data.Csv.CsvDataInvalidOperationException' was thrown.", target.Message);
        }

        [TestMethod]
        [Description("Tests constructor CsvDataInvalidOperationExceptionTest(string message).")]
        public void CsvCommandConstructor2Test()
        {
            var expectedMessage = "CSV command error.";

            var target = new CsvDataInvalidOperationException(expectedMessage);

            Assert.AreEqual(expectedMessage, target.Message);
        }
    }
}
